/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年8月30日
 *
 */

package com.eyaomall.wxmall.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.eyaomall.wxmall.service.MallDescService;
import com.lycheeframework.core.cmp.api.http.GsnData;
import com.lycheeframework.core.cmp.api.http.GsnResponse;

/**
 * @author tumingjun
 *
 */
@Controller
@RequestMapping("mallDesc")
public class MallDescController {
	
	@Autowired
	private MallDescService mallDescService;
	
	/**
	 * 获取首页Banner
	 * @return
	 */
	@RequestMapping("get_banner")
	public @ResponseBody GsnData getBanner(){
		
		return GsnResponse.toData(mallDescService.queryMallBanner());
	}

}
